package com.haorui.lygyd.wxapi.dto;

import com.haorui.base.core.utils.BeanUtil;
import com.haorui.base.core.vo.DataTransferObject;
import com.haorui.lygyd.wxapi.entity.WXUserInfoEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * 创建人: 系统生成
 * 日期: Sat Sep 30 16:00:14 CST 2017
 */
@Data
public class WXUserInfoDto implements DataTransferObject<WXUserInfoEntity> {

    private String id;
    @ApiModelProperty(value = "用户的标识")
    private String openId;
    @ApiModelProperty(value = "关注状态")
    private int subscribe;
    @ApiModelProperty(value = "用户关注时间")
    private String subscribeTime;
    @ApiModelProperty(value = "昵称")
    private String nickname;
    @ApiModelProperty(value = "性别")
    private String sex;
    @ApiModelProperty(value = "所在国家")
    private String country;
    @ApiModelProperty(value = "所在省份")
    private String province;
    @ApiModelProperty(value = "所在城市")
    private String city;
    @ApiModelProperty(value = "用户的语言")
    private String language;
    @ApiModelProperty(value = "用户头像")
    private String headImgUrl;
    @ApiModelProperty(value = "关联会员")
    private String memberId;
    @Override
    public WXUserInfoEntity buildPO() {
            WXUserInfoEntity weixinUserInfoEntity=new WXUserInfoEntity();
        BeanUtil.beanCopyIgnoreDefault(this,weixinUserInfoEntity);
        return weixinUserInfoEntity;
    }

    @Override
    public String getId() {
        return this.id;
    }
}
